package com.wjm.blog.system.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

import java.time.LocalDateTime;

/**
 * 用户信息表保存VO
 *
 * @author wjm
 * @version 1.0
 * @date 2023-10-18T14:34:39.366
 */
@Data
@ApiModel
public class SysUserSaveVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "userAccount不能为空")
    @ApiModelProperty(value = "用户账号", required = true)
    private String userAccount;

    @NotBlank(message = "userPwd不能为空")
    @ApiModelProperty(value = "用户密码", required = true)
    private String userPwd;

    @NotBlank(message = "nickName不能为空")
    @ApiModelProperty(value = "昵称", required = true)
    private String nickName;

    @NotBlank(message = "realName不能为空")
    @ApiModelProperty(value = "真实姓名", required = true)
    private String realName;

    @NotNull(message = "userType不能为空")
    @ApiModelProperty(value = "1:管理员用户 2:普通用户", required = true)
    private Integer userType;

    @NotNull(message = "gender不能为空")
    @ApiModelProperty(value = "性别 1：男 2：女", required = true)
    private Integer gender;

    @NotBlank(message = "headUrl不能为空")
    @ApiModelProperty(value = "头像", required = true)
    private String headUrl;

    @NotBlank(message = "phone不能为空")
    @ApiModelProperty(value = "联系电话", required = true)
    private String phone;

    @NotBlank(message = "email不能为空")
    @ApiModelProperty(value = "邮箱", required = true)
    private String email;

    @NotBlank(message = "roleName不能为空")
    @ApiModelProperty(value = "角色", required = true)
    private String roleName;

    @NotNull(message = "lastLoginTime不能为空")
    @ApiModelProperty(value = "上次登录时间", required = true)
    private LocalDateTime lastLoginTime;

    @NotNull(message = "isEnabled不能为空")
    @ApiModelProperty(value = "启用标识 0：否，1：是", required = true)
    private Integer isEnabled;

    @NotNull(message = "clientId不能为空")
    @ApiModelProperty(value = "", required = true)
    private Long clientId;

}
